package org.example.cassell_client.service;

import com.github.pagehelper.PageInfo;
import org.example.cassell_client.service.fallback.TipClientFallbackFactory;
import org.example.entity.Base.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = "tip", url = "http://localhost:8085/dc" , fallbackFactory = TipClientFallbackFactory.class)
public interface TipServiceClient {
    @PostMapping("/tip/alltip")
    Result<PageInfo> alltip(@RequestParam(name="PageNumber", defaultValue = "1")int PageNumber, @RequestParam(name="PageSize", defaultValue = "5")int PageSize);
}
